const options = {
  code: 0,
  msg: 'success',
};

const dataTypes = {
  ...options,
  data: {
    items: [
      {
        label: '计算机视觉',
        value: 'cv',
        tasks: [
          {
            label: '图像分类',
            value: 'classification',
            annotFormats: [
              {
                label: 'folder',
                value: 'folder',
              },
              {
                label: 'imagenet',
                value: 'imagenet',
              }
            ]
          },
          {
            label: '目标检测',
            value: 'detection',
            annotFormats: [
              {
                label: 'COCO',
                value: 'coco'
              }
            ],
          }
        ],
      },
      {
        label: '推荐',
        value: 'recommend',
        tasks: [
          {
            label: '推荐',
            value: 'recommend',
            annotFormats: []
          },
        ],
      },
      {
        label: '自然语音处理',
        value: 'nlp',
        tasks: [
          {
            label: '翻译',
            value: 'translation',
            annotFormats: [
              {
                label: 'wmt',
                value: 'wmt',
              },
            ]
          },
          {
            label: '文本分类',
            value: 'TextCategorization',
            annotFormats: [
              {
                label: 'chinese-glue',
                value: 'chinese-glue',
              },
            ]
          },
        ],
      },
    ]
  }
};

const dataset = {
  ...options,
  data: {
    annotStatus: [
      {
        label: '标注中',
        value: 'labeling',
      },
      {
        label: '已标注',
        value: 'labeled',
      },
      {
        label: '未标注',
        value: 'unlabeled',
      },
    ],
    sourceType: [
      { label: '本地上传', value: 'upload' },
      { label: '平台导入', value: 'import' },
      { label: '发布', value: 'publish' },
      { label: '编辑', value: 'edit' },
    ]
  }
};

export default {
  'GET /adhub/api/v1/metadata/data-type': dataTypes,
  'GET /adhub/api/v1/metadata/dataset': dataset,
}